Destroy the previous search view when there's no search terms, to make
sure old search items don't show up.
}
},
+ _reset: function() {
+ this._terms = [];
+ this._results = {};
+ this._clearDisplay();
+ this._clearSearchTimeout();
+ this._defaultResult = null;
+ this._startingSearch = false;
+
+ this._updateSearchProgress();
+ },
+
_doSearch: function() {
this._startingSearch = false;
this._cancellable.reset();
if (terms.length == 0) {
- this._clearSearchTimeout();
+ this._reset();
return;
}